import Vue from "vue";
import Router from 'vue-router'


// import Helloword from '../components/HelloWorld.vue'



Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/login',
            hidden: true,
            component: () => import('@/views/login/login')
        },
        {
            path: '/login',
            name: 'login',
            hidden: true,
            component: () => import('@/views/login/login')
        },
        {
            path: "/dataAny",
            name: "数据统计",
            iconClass: "fa fa-area-chart",
            component: () => import('@/components/Home'),
            children: [{
                path: "/dataAny",
                name: "数据统计",
                iconClass: "fa fa-bar-chart",
                component: () => import('@/views/dataAnalysis/dataAny'),
            }]
        },
        // {
        //     path: "/home",
        //     // 懒加载
        //     component: () => import('@/components/Home'),
        //     // 异步懒加载
        //     // component: resolve => require(['@/components/HelloWorld'],resolve),
        // },
        {
            path: "/home",
            // 懒加载
            name: '招聘管理',
            iconClass: 'fa fa-users',
            // redirect:'/new/infos',
            component: () => import('@/components/Home'),
            children: [{
                path: '/new/infos',
                name: '信息管理',
                iconClass: 'fa fa-list-alt',
                component: () => import('@/views/news/infolist')
            },
            {
                path: '/new/work',
                name: '信息列表',
                iconClass: 'fa fa-list-ul',
                component: () => import('@/views/news/worklist')
            },
            {
                path: '/new/workment',
                name: '信息管理',
                iconClass: 'fa fa-list-alt',
                component: () => import('@/views/news/workment')
            },]
        },/*** 
        {
            path: "/home",
            // 懒加载
            name: '报名管理',
            iconClass: 'fa fa-users',
            // redirect:'/new/infos',
            component: () => import('@/components/Home'),
            children: [{
                path: '/new/infos',
                name: '信息管理',
                iconClass: 'fa fa-list-alt',
                component: () => import('@/views/news/infolist')
            },
            {
                path: '/new/work',
                name: '作业列表',
                iconClass: 'fa fa-list-ul',
                component: () => import('@/views/news/worklist')
            },
            {
                path: '/new/infos',
                name: '信息管理',
                iconClass: 'fa fa-list-alt',
                component: () => import('@/views/news/infolist')
            },]
        },
        {
            path: "/home",
            // 懒加载
            name: '支付管理',
            iconClass: 'fa fa-users',
            // redirect:'/new/infos',
            component: () => import('@/components/Home'),
            children: [{
                path: '/new/infos',
                name: '信息管理',
                iconClass: 'fa fa-list-alt',
                component: () => import('@/views/news/infolist')
            },
            {
                path: '/new/work',
                name: '作业列表',
                iconClass: 'fa fa-list-ul',
                component: () => import('@/views/news/worklist')
            },
            {
                path: '/new/infos',
                name: '信息管理',
                iconClass: 'fa fa-list-alt',
                component: () => import('@/views/news/infolist')
            },]
        }*/

    ],
    mode: 'history'
})